package com.lhf.novel.event;

import org.springframework.context.ApplicationEvent;

/**
 * <p>定义发布邮件的事件</p>
 *
 * @author zy 刘会发
 * @since 2020/3/11$
 */
public class MailEvent extends ApplicationEvent {
    private static final long serialVersionUID = -8766001736665134358L;
    private String mes;
    private String to;
    private String title;

    public MailEvent(Object source, String to, String title, String mes ) {
        super(source);
        this.to = to;
        this.mes = mes;
        this.title = title;
    }

    public String getMes() {
        return mes;
    }

    public void setMes(String mes) {
        this.mes = mes;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
